package com.hc.fdkgoods.vo.vo_3;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class SpuListVO {

    private String goodsLink;
    private String goodsNo;
    private String mainImgUrl;
    private boolean multiSupplier;
    private String spuGoodsNo;
    private Long spuId;
    private String spuName;
    private List<SKUItemVO> skuList;

    private String supplierGroupName;
    private Long supplierId;
    private String supplierName;
    private Long totalNum;
    private Long totalSKU;

    private int total;
    private Long totalSukNum;
    // private List<ToPreparePushListVO> list;

    public SpuListVO(SKUItemVO skuItemVO){
        this.goodsLink = skuItemVO.getGoodsLink();
        this.goodsNo = skuItemVO.getGoodsNo();
        this.mainImgUrl = skuItemVO.getMainImgUrl();
        this.spuGoodsNo = skuItemVO.getSpuGoodsNo();
        this.spuId = skuItemVO.getSpuId();
        this.spuName = skuItemVO.getSpuName();

        this.supplierGroupName = skuItemVO.getSupplierGroupName();
        this.supplierId = skuItemVO.getSupplierId();
        this.supplierName = skuItemVO.getSupplierName();
        this.totalNum = skuItemVO.getTotalNum();
        this.totalSKU = skuItemVO.getTotalSKU();

        this.total = skuItemVO.getTotal();
        this.totalSukNum = skuItemVO.getTotalSukNum();
    }
}
